package com.qna;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAttribute;  
import javax.xml.bind.annotation.XmlElement;  
import javax.xml.bind.annotation.XmlRootElement;  

@XmlRootElement(name="user")  
public class UserDetails {

	public UserDetails() {
	}

	private int emailInterval = 24;	
	  private ArrayList<Integer> answeredQuestionList;
	  
	@XmlElement(name="answeredQuestionList")		
	public ArrayList<Integer> getAnsweredQuestionList() {
		return answeredQuestionList;
	}

	public void setAnsweredQuestionList(ArrayList<Integer> answeredQuestionList) {
		this.answeredQuestionList = answeredQuestionList;
	}

	@XmlAttribute(name="emailInterval")
	public int getEmailInterval() {
		return emailInterval;
	}

	public void setEmailInterval(int emailInterval) {
		this.emailInterval = emailInterval;
	}
}